/**
 * 
 */

function general()
{
	if(document.getElementById('btnview')!=null)
	{
		document.getElementById('btnview').onclick=function()
		{
			location.href='view.jsp'
		}
	}
	if(document.getElementById('btndelete')!=null)
	{
		document.getElementById('btndelete').onclick=function()
		{
			location.href='delete.jsp'
		}
	}
	if(document.getElementById('btnlist')!=null)
	{
		document.getElementById('btnlist').onclick=function()
		{
			location.href='list.jsp'
		}
	}
	if(document.getElementById('btnmodify')!=null)
	{
		document.getElementById('btnmodify').onclick=function()
		{
			location.href='modify.jsp'
		}
	}
	if(document.getElementById('btnwrite')!=null)
	{
		document.getElementById('btnwrite').onclick=function()
		{
			location.href='write.jsp'
		}
	}
}

function goPage(page)
{
	location.href='view.jsp?page=' + page;
}
function viewinit()
{
	general();
}
function listinit()
{
	general();
}
function writeinit()
{
	general();
}
function w_resultinit()
{
	general();
}
function deleteinit()
{
	general();
}
function d_resultinit()
{
	general();
}
function modifyinit()
{
	general();
}
function m_resultinit()
{
	general();
}